package shooter.network;

/**
 * Represents a quit message. If a client leaves the game he sends this message to
 * the server.
 * 
 * @author Michail Tausch
 */
public class QuitMessage extends Message{
	
	String name = "";
	
	/**
	 * The constructor.
	 * @param name
	 */
	public QuitMessage(String name){
		this.name = name;
	}
	
	/**
	 * Returns the name of the player.
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name of the player.
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}	
}
